package com.jiantong.work.service;
import com.jiantong.work.model.PurchaseRecord;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 * Created by Administrator on 2017/3/20.
 */
public interface PurchaseRecordWriteService {
    /**
     * 创建采购中心-新单据
     *
     * @param purchaseRecord 单据对象
     * @return 主键 id
     */
    Response<Map<String,Object>> createPurchaseRecord(PurchaseRecord purchaseRecord,Integer toStatus);
    /**
     * 更新采购中心的单据
     * @param purchaseRecord 单据对象
     * @return true or false
     */
    Response<Map<String,Object>> updatePurchaseRecord(PurchaseRecord purchaseRecord,Integer toStatus);
}
